<template>
  <div>
    <el-radio-group v-model="valueRadio" v-if="!multil">
      <el-radio-button
        v-for="item in options"
        :label="item.value"
        :key="item.value"
      >
      {{item.label}}
      </el-radio-button>
    </el-radio-group>

    <el-checkbox-group v-model="valueChbox" v-if="multil">
      <el-checkbox-button
        v-for="item in options"
        :label="item.value"
        :key="item.value"
      >
        {{ item.label }}
      </el-checkbox-button>
    </el-checkbox-group>
  </div>
</template>

<script>
import mixinForm from "@/mixins/mixinForm.js";
export default {
  name: "",
  mixins: [mixinForm],
  props: {
    multil: {
      type: Boolean,
      default: false,
    },
    options: {
      type: Array,
      default() {
        return [
        ];
      },
    },
  },
  data() {
    return {
      valueRadio: "",
      valueChbox: [],
    };
  },
};
</script>
<style scoped></style>
